package com.heei.common;
import net.sf.json.JSONObject;


/**
 * @program: spring-cloud-learning
 * @description: 简单测试
 * @author: HuPing
 * @create: 2020-11-26 09:51
 **/
public class T001_simpleTest {

    public static void test1(){
        String jsonResponse = "{success:false,message:'该任务已完成，无需补充'',code:'500',result:'',taskId:''}";
        JSONObject json = JSONObject.fromObject(jsonResponse);
        String resultCode = (String) json.get("code");

        System.out.println(resultCode);
    }
}
